home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_lag_slumpsand.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  69 lines

  1. # Jones 3D Cog Script
  2. #
  3. # lag_slumpsand.cog
  4. #
  5. # Cog to slump sand from bronze door one.
  6. #
  7. # [DS]
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ===================================================================
  12.  
  13.  
  14. symbols
  15.       message    entered
  16.     
  17.     surface    switch0
  18.     surface    sandsurf0
  19.     int        slumped=0                     local
  20.     thing        campos1
  21.     thing        player                    local
  22.     thing        sandy                        local
  23.     int        curcam                    local
  24.     int        stepsnd                    local
  25.     thing        ghostsand
  26.     template    sand0
  27.     sound        switchsnd=olv_presswitch_c.wav    local
  28.     cog            hints #send message when complete. 
  29.     sound        music0=mus_lag_uwaterdoor.wav        local
  30.  
  31. end
  32.  
  33. # -------------------------------------------------------------------
  34. code
  35. entered:
  36.     if(getsenderref() != switch0) return;
  37.     if (slumped == 1) return;
  38.     slumped=1;
  39.     curCam = GetCurrentCamera();
  40.     SetActorFlags(GetLocalPlayerThing(), 0x200000);
  41.     StopThing(player);
  42.     StartCutscene(1);
  43.     stepsnd=PlaySoundLocal(switchsnd, 1.0, 0.0, 0x0, 0);
  44.     waitForSound(stepsnd);
  45.     SetFaceGeoMode(sandsurf0, 0);
  46.     SetAdjoinFlags(sandsurf0,2);
  47.     sandy = Creatething(sand0, ghostsand);
  48.     capturething(sandy);
  49.     PlaySoundLocal(music0, 1.0, 0.0, 0x0, 0);
  50.     SetCameraFocus(2, campos1);
  51.     SetCameraPosInterp(2, 0);
  52.     SetCameraSecondaryFocus(2, ghostsand);
  53.     SetCurrentCamera(2);
  54.     SetCameraFOV(90, 0, 0);    
  55.     SetCameraFOV(45, 1, 7);    
  56.     Movetoframe(sandy, 1, 0.5);
  57.     WaitForStop(sandy);
  58.     DestroyThing(sandy);
  59.     SetCurrentCamera(curcam);
  60.     ClearActorFlags(GetLocalPlayerThing(), 0x200000);
  61.     EndCutscene();
  62.  
  63.         # Send message to hint cog
  64.         SendMessage(hints, user5);
  65.  
  66.     return;
  67. end
  68.  
  69.